Remove declarations for getresuid()/getresgid()
authorEmmanuele Bassi <ebassi@gnome.org>
Sat, 15 Oct 2016 20:35:10 +0000 (21:35 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 17 Oct 2016 10:44:11 +0000 (11:44 +0100)
Back in 2001, their prototypes were missing from system headers, but
since glibc 2.3.2 they are defined in unistd.h if _GNU_SOURCE is
defined.

gtk/gtkmain.c

index 9e2a6df54832c87a8ad723b150ba5abcdf7a49ef..20e2cea1ecc1428283a228e4a00ba13b49428264 100644 (file)
@@ -361,11 +361,6 @@ check_setugid (void)
   gid_t rgid, egid, sgid; /* Real, effective and saved group ID's */
   
 #ifdef HAVE_GETRESUID
-  /* These aren't in the header files, so we prototype them here.
-   */
-  int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
-  int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
-
   if (getresuid (&ruid, &euid, &suid) != 0 ||
       getresgid (&rgid, &egid, &sgid) != 0)
 #endif /* HAVE_GETRESUID */